import cv2

imgPath = './img/h5.png'
img = cv2.imread(imgPath)

img1 = img.copy()  # 深拷贝
cv2.imwrite('./img/h5_copy.png', img1)  # 保存图片
